//
//  OrientationViewController.h
//  Estate
//
//  Created by heyong on 16/6/3.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AddressModel.h"
#import "JLAddJLViewController.h"
#import "PositionBlockModel.h"

typedef void(^qdBlock)(PositionBlockModel *pBlockModel, AddressModel *addModel, NSString *addInfo);

@interface OrientationViewController : UIViewController<UITableViewDelegate, UITableViewDataSource>


/**选择地点表格*/
@property (strong ,nonatomic)UITableView *tableView;

//弹出视图
@property (strong, nonatomic)UIView *flagView;

/**位置提示*/
@property (strong ,nonatomic)UILabel *addlab;

//得到数据数组
@property(strong, nonatomic)NSMutableArray *dataArr;

//指定dic
@property (strong ,nonatomic)NSMutableDictionary *dataDic;

//判断是哪个弹出视图
@property (copy, nonatomic)NSString *flagStr;

//带入图片数组
@property (strong, nonatomic)NSMutableArray *imageArray;

@property (copy, nonatomic) qdBlock returnPlaceInfoBlock;

// 回传
@property (assign, nonatomic) BOOL hC;

// 记录各级数据源
@property (strong, nonatomic) NSMutableArray *dataArr1;
@property (strong, nonatomic) NSMutableArray *dataArr2;
@property (strong, nonatomic) NSMutableArray *dataArr3;
@property (strong, nonatomic) NSMutableArray *dataArr4;

// 记录被点击过的addresID;
@property (copy, nonatomic) NSString *aID;
@property (copy, nonatomic) NSString *firstID;
@property (copy, nonatomic) NSString *secondID;
@property (copy, nonatomic) NSString *thirdID;

// 级数
@property (assign, nonatomic) int number;

// 当前被点的地址数据模型
@property (strong, nonatomic) AddressModel *addressModel;

// 计算出的位置JSON字符串
@property (copy, nonatomic) NSString *position;

//得到选择的值
@property(copy, nonatomic)NSString *keyStr;

//记录选择的位置名称
@property (strong, nonatomic)NSMutableArray *addressArr;

// 点击的位置
@property (nonatomic, assign) CGFloat selectedX;
@property (nonatomic, assign) CGFloat selectedY;

// 放大倍数
@property (nonatomic, assign) CGFloat scale;


@end



